package com.mydesignpattern.beijing.responsibilitychain.simple.impl;

import com.mydesignpattern.beijing.responsibilitychain.simple.Filter;

/**
 * 敏感词处理类
 * Created by nevermore on 17/4/25.
 */
public class SensitiveFilter implements Filter {
    @Override
    public String doFilter(String msg) {
        return msg.replace("sb", "**").replace("坏蛋","好人");
    }
}
